﻿using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace DeVierKoeden.Dynamicweb.CreateSite.Rizzo
{
  internal class ItemTreeNode : TreeNode
  {
    /// <summary>
    /// Initializes a new instance of the <see cref="ItemTreeNode"/> class.
    /// </summary>
    public ItemTreeNode()
    {
      ImageIndex = 0;
      SelectedImageIndex = 0;
    }
    public string Inherits { get; set; }
    public string SystemName { get; set; }
    internal List<GroupTreeNode> GetGroups()
    {
      return Nodes.OfType<GroupTreeNode>().ToList();
    }
  }
}
